<template>
  <div class="layui-layer layui-layer-tips">
    <div id="" class="layui-layer-content">
      Hi，我是tips
      <i class="layui-layer-TipsG layui-layer-TipsR"></i>
    </div>
    <slot></slot>
    <span class="layui-layer-setwin"></span>
  </div>
</template>

<script lang="ts">
import {defineComponent} from 'vue'

export default defineComponent({
  name: 'LayTips',
  setup (props, { slots }) {
    console.log(slots?.default?.())
    const childEl = slots?.default?.()[0]?.children?.[0]
    console.log(childEl)
    return {}
  }
})
</script>

<style scoped lang="less">

</style>
